<?php
//------------------------------------------------------------------------------
// File view list for Thong tin dau tu
// Modification       :
//------------------------------------------------------------------------------
// Date(yyyy.mm.dd)   Developer                       Action
//------------------------------------------------------------------------------
// 2007.03.09         ThanhTX                         Created
//------------------------------------------------------------------------------

function V_TuyendungList(&$arrayData){
	$ulr = "?".MODUL."=tuyendung&".ACTION."=";
?>
<SCRIPT language=javascript src="../javascript/functions.js" type=text/javascript></SCRIPT>
    <table width="100%" border="0" align="center">
	<tbody>
	  <tr>
	  	<td><?= CM_showError() ?></td>
	  </tr>
	 <tr>
	    <td><font size="4" color="#FF0000">Thông tin tuyển dụng:</font>&nbsp;<a href="?modul=tuyendung&action=Add" class="thanh_link1"><strong>Thêm mới</strong></a><br>
	      <hr width="25%" size="1" align="left">
		
		<!--<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr><td width="4%" valign="top"><div align="center"><a href="?modul=info&action=Add" class="thanh_link1"><IMG   title=Change height=20 alt=Insert  src="../images/Insert.gif" width=20  border=0></a></div></td>
				<td width="96%" valign="bottom"><a href="?modul=info&action=Add" class="thanh_link1">&nbsp;<strong><font size="2" color="#C60000" >Thêm mới</font></strong></a></td>
		</tr></table>-->
	   </td>
	</tr> 
		
	   <tr>
        <td width="100%">														
				<TABLE border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9900" bordercolordark="white" width="100%">
				  <TBODY>
					  <TR align="center" bgcolor="#FFE59F">
					  	<TD width="30" align="center"><font size="2"><strong>STT</strong></font></TD>
						<TD width="32" align="center"><font size="2"><strong>Sửa</strong></font></TD>  
						<TD width="27" align="center"><font size="2"><strong>Xóa</strong></font></TD>    
						<TD width="695" align="left"><font size="2"><strong>Tiêu đề</strong></font></TD>
						<TD width="143" align="center"><font size="2"><strong>Hiển thị</strong></font></TD>
						<TD width="186" align="right"><font size="2"><strong>Ngày tạo</strong></font></TD>
				    </TR>
<?				 		$stt=0;
						foreach  ($arrayData as $row)
						{
							//print_r($arrayData);
							$stt+=1;
							$str_hienthi = "";
							if($row["hien_thi"]=='1'){
								$str_hienthi = 'Có';
							} else{
								$str_hienthi = 'Không';
							}
?>			
					  <TR> 
					  	<TD align="center" valign="middle" class=bk12-140 bgcolor="#FFE59F"><font size="2"><?=$stt?></font></TD> 
						<TD width="32" align="center" valign="middle" class=bk12-140 bgcolor="#FFE59F">
							<A  href="<?=$ulr."Edit"?>&id=<? echo $row['id']; ?>">
								<IMG   title="Sửa" height=16 alt=Change hspace=2   src="../images/Edit.gif" width=16 border=0>							</A>						</TD>
						<TD align="center" valign="middle" class=bk12-140 bgcolor="#FFE59F">
							<A onclick="return confirmDelete();" 
								href="<?=$ulr."Delete"?>&id=<? echo $row['id']; ?>">
									<IMG title="Xóa" height=16 alt=Drop hspace=2 src="../images/Delete.gif" width=16 border=0>
							</A>
						</TD>
						<TD width="695"class=bk12-140 align="left">
							<font size="2"><A  class="thanh_link" href="<?=$ulr."View"?>&id=<? echo $row['id']; ?>"><? echo $row['tieu_de']; ?></A>						    </font></TD>        
						<TD width="143" class=bk12-140 align="center"><font size="2">
						<a class="thanh_link" href="<?=$ulr."Edit_ht"?>&id=<? echo  $row['id']; ?>&curPg=<?=CM_getParameter("curPg");?>&hien_thi=<? echo $row['hien_thi'];?>">
							<? echo $str_hienthi; ?>
						</a></font>
						</TD>
						<TD width="186" class=bk12-140 align="right"><font size="2"><? echo $row['ngay_tao']; ?></font></TD>
					  </TR>				
<?
						} // end foreach  ($arrayData as $row)			
?>
				   </TBODY>
				 </TABLE>
		</td>
		</tr>
	  </tbody>
    </table>
         
<?php
}
?>


	